package velox.jcr.mapper;

/**
 * As entities are shared among threads via the SecondLevelCache, we need to provide
 * the ability to save and restore state of the entities in the cache instead of
 * the entities themselves
 */
public interface CachingMapper<T, S> extends Mapper<T> {
	public S serialize(T t);
	public T deserialize(S o);
}
